package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SysRoleDao;
import cn.com.bdqn.entity.SysRole;
import cn.com.bdqn.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleDao dao;

    @Override
    public List<SysRole> queryByLike(SysRole sysRole) {
        return dao.queryByLike(sysRole);
    }

    @Override
    public List<SysRole> queryAll() {
        return dao.queryAll();
    }

    @Override
    public SysRole queryByRoleId(Long roleId) {
        return dao.queryByRoleId(roleId);
    }

    @Override
    public int updateSysRole(SysRole sysRole) {
        return dao.updateSysRole(sysRole);
    }

    @Override
    public int addSysRole(SysRole sysRole) {
        return dao.addSysRole(sysRole);
    }

    @Override
    public int delSysRole(Long roleId) {
        return dao.delSysRole(roleId);
    }
}
